package com.platform.acl.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author CZF
 * @since 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Permission对象", description="")

public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id，“所有权限”的id为1")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "此权限的所属上级，0表示“所有权限”的上级")
    private String pid;

    @ApiModelProperty(value = "权限名称")
    private String pName;

    @ApiModelProperty(value = "权限等级(0：所有权限、1：一级菜单、2：二级菜单或二级菜单下的操作权限)")
    private Boolean level;

    @ApiModelProperty(value = "图标地址")
    private String icon;

    @ApiModelProperty(value = "1：启用 0：禁用")
    private Boolean status;

    @ApiModelProperty(value = "逻辑删除（1已删除，0未删除）")
    @TableLogic
    private Boolean isDeleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date gmtModified;


}
